package com.pawelthiel.persistence.dao.implementation;

import java.util.List;

import javax.persistence.PersistenceException;

import com.framework.persistence.jpa.AbstractGenericJpaDAO;
import com.pawelthiel.persistence.dao.IDataAccessObject;
import com.pawelthiel.persistence.entity.AbstractEntity;
import com.pawelthiel.persistence.entity.Frage;
import com.pawelthiel.persistence.mapper.EntityToTransferObjectMapper;
import com.pawelthiel.persistence.to.AbstractTO;
import com.pawelthiel.persistence.to.FrageTO;

public class FrageDAO extends AbstractGenericJpaDAO<Frage, Integer> implements IDataAccessObject<FrageTO> {

	@Override
	public AbstractTO select(int pk) throws PersistenceException,
			com.framework.exceptions.PersistenceException {
		Frage frage = findByPrimaryKey(pk);
		FrageTO frageTO = EntityToTransferObjectMapper.mapFrage(frage);
		return frageTO;
	}

	@Override
	public FrageTO findByFilter(int key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public FrageTO findByFilter(String key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer getPrimaryKey(AbstractEntity entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<FrageTO> selectAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void insert(AbstractTO to)
			throws com.framework.exceptions.PersistenceException {
		// TODO Auto-generated method stub

	}

	@Override
	public void update(AbstractTO to)
			throws com.framework.exceptions.PersistenceException {
		// TODO Auto-generated method stub

	}

	@Override
	public void delete(AbstractTO to)
			throws com.framework.exceptions.PersistenceException {
		// TODO Auto-generated method stub

	}

}
